using System; 
using System.Collections.Generic; 
using System.Text; 
using FluentNHibernate.Mapping;

namespace Pcme.Info.MvcMusicStore.Models {
    
    
    public partial class GenreMap : ClassMap<Genre> {
        
        public GenreMap() {
			Table("Genre");
			LazyLoad();
			Id(x => x.GenreId).GeneratedBy.Identity().Column("GenreId");
			Map(x => x.Name).Column("Name");
			Map(x => x.Description).Column("Description");
            HasMany(x => x.Albums).KeyColumn("GenreId");
        }
    }
}
